var margin = {top: 20, right: 10, bottom: 20, left: 10},
    width = window.innerWidth * 0.9,
    height = window.innerHeight * 0.9,
    plot_width = width - margin.right - margin.left,
    plot_height = height - margin.top - margin.bottom;
